package cn.shadow.message;

import cn.shadow.moulde.ModuleHub;
import io.netty.channel.Channel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class MessageWorkerFactory implements WorkerFactory {
    @Autowired
    ModuleHub moduleHub;
    @Override
    public Worker newWorker(Channel channel) {
        return new MessageWorker(channel, moduleHub);
    }

}
